package com.jhgk.jhcee.auth.service;

import com.jhgk.jhcee.common.domain.UserModel;
import com.jhgk.jhcee.common.resultful.BasisResultful;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/16 14:35.
 */
@FeignClient("jhcee-system")
@Service
public interface SysUserInfoService {

    @GetMapping("/admin/loadUserByUsername")
    BasisResultful<UserModel> loadUserByUsername(@RequestParam("username") @NotBlank(message = "用户名不能为空") String username);
}
